<template>
  <div id="app" :style="{'--global-height': globalTableHeight}">
    <router-view />
  </div>
</template>

<script>

export default {
  name: "App",
  metaInfo() {
    return {
      title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
      titleTemplate: title => {
        return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
      }
    }
  },
  provide() {
    return {
      setTableHeight: this.setTableHeight
    }
  },
  data() {
    return {
      globalTableHeight: '48px'
    }
  },
  meat: [123],
  mounted() {
    // console.log(this);
  },
  methods: {
    setTableHeight(val) {
      this.globalTableHeight = val;
    }
  }
};
</script>
<style lang="scss">
#app .theme-picker {
  display: none;
}
* {
  &::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    background: transparent;
  }
  &::-webkit-scrollbar-thumb {
    width: 0px;
    background: transparent;
  }
  &:hover {
    &::-webkit-scrollbar-thumb {
      width: 4px !important;
      border-radius: 2px !important;
      background: linear-gradient(45deg, var(--current-color), #aaf1e3);
    }
  }
}
.el-table {
  overflow: visible !important;
  .el-table__header-wrapper {
    position: sticky;
    top: 50px;
    z-index: 10;
    .el-table__header {
      thead tr th {
        color: #323233 !important;
        font-weight: 600;
        background: #fff;
      }
    }
  }
  td, th {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: var(--global-height) !important;
  }
}
.link-span {
  color: var(--current-color);
  cursor: pointer;
}
.delete-span {
  color: #F56C6C !important;
}
.el-textarea__inner {
  resize: none !important;
}

.popover-tips {
  font-size: 12px !important;
  .popover-title {
    font-weight: 600;
  }
}
.dialog-subtitle {
  font-size: 14px;
  font-weight: bold;
  line-height: 36px;
  border-bottom: 1px solid #eee;
  margin-bottom: 12px;
  &::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 16px;
    background: var(--current-color);
    margin-right: 8px;
    vertical-align: middle;
    margin-top: -2px;
  }
}
.el-form-item.formItem_text {
  margin-bottom: 10px !important;
}
.el-form-item .el-form-item__content {
  line-height: 30px !important;
}
.el-cascader {
  line-height: 30px !important;
}
.divide {
  width: 100%;
  height: 0;
  border-bottom: 1px solid #eee;
  margin: 8px 0;
}
.more-btn {
  text-align: center;
  font-size: 14px;
  color: #666;
  text-align: center;
  cursor: pointer;
  padding: 4px 0;
  &:hover {
    color: var(--current-color);
  }
}
.el-form-item__label {
  word-spacing: 12px;
}
.el-date-range-picker {
  max-width: 660px !important;
  overflow: scroll !important;
  width: 100% !important;

}
.el-date-range-picker .el-picker-panel__body {
  min-width: 468px !important;
}

.el-message-box {
  max-width: 362px !important;
  width: 90% !important;
}
</style>
